<section class="scrollable wrapper">
	<div class="row">
		<div class="col-sm-6 col-md-offset-3">
		  <section class="panel">
			<header class="panel-heading font-bold">Form Edit Data Sekolah</header>
			<div class="panel-body">
			  <form class="bs-example form-horizontal" data-validate="parsley" action="<?php echo site_url('admin/datasekolah/edit/'.$get_data['NPSN']); ?>" method="post">
				
				<div class="form-group">
				  <label class="col-lg-2 control-label">NPSN</label>
				  <div class="col-lg-10">
					<input type="text" class="form-control parsley-validated" data-required="true" value="<?php echo $get_data['NPSN']?>" name="npsn">
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-lg-2 control-label">Nama</label>
				  <div class="col-lg-10">
					<input type="text" class="form-control parsley-validated" data-required="true" value="<?php echo $get_data['NAMA']?>"  name="nama">
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-lg-2 control-label">Alamat</label>
				  <div class="col-lg-10">
					<input type="text" class="form-control" data-required="true" value="<?php echo $get_data['ALAMAT']?>"  name="alamat">
				  </div>
				</div>	
				<div class="form-group">
				  <label class="col-lg-2 control-label">Jenjang</label>
				  <div class="col-lg-10">
				  <?php
				  
					$attr = 'class="form-control" ';
					$data_sekolah = array(
						'SD'	=> 'SD',
						'SMP'	=> 'SMP',
						'SMA'	=> 'SMA',
						'MI'	=> 'MI',
						'MTS'	=> 'MTs',
						'MA'	=> 'MA'
					);
					
					echo form_dropdown('jenjang',$data_sekolah,$get_data['JENJANG'],$attr);
				  ?>
				  </div>
				</div>		
				<div class="form-group">
				  <label class="col-lg-2 control-label">Status</label>
				  <div class="col-lg-10">
					 <?php
				  
					$attr = 'class="form-control" ';
					$data_sekolah = array(
						'N'	=> 'Negeri',
						'S'	=> 'Swasta',
						'NF'=> 'Non-Formal',
					);
					
					echo form_dropdown('status',$data_sekolah,$get_data['STATUS'],$attr);
				  ?>
				  </div>
				</div>	
				<div class="form-group">
				  <div class="col-lg-offset-2 col-lg-10">
					<button type="submit" class="btn btn-primary">Ubah</button>
					<button type="button" class="btn btn-white" onClick="back()">Batal</button>
				  </div>
				</div>
				</form>
			  
			</div>
		  </section>
		</div>
	</div>
</section>
<script>
function back()
{
	window.history.back();
}
</script>